<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Assessment</title>
    <style>
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            padding: 20px;
            margin: 0;
            background-image: url("{{ url_for('static', filename='images/bg2.2.png') }}"); /* 修复语法错误 */
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            background-attachment: fixed;
        }

        .assessment-container {
            background-color: #fff;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
            width: 90%;
            max-width: 900px;
            margin: 0 auto;
            box-sizing: border-box;
        }

        .question {
            margin-bottom: 20px;
            padding-left: 45px;
        }

        .question p {
            font-weight: 600;
            margin-bottom: 15px;  /* 从5px改为15px增加下边距 */
        }

        .question label {
            display: block;
            margin-bottom: 15px;
            margin-top: 8px;  /* 新增上边距 */
        }

        .header-image {
            text-align: center;
            margin-bottom: 0px;
            padding: -20px 0;  /* 新增上下内边距 */
        }

        input[type="radio"] {
            margin-right: 5px;
        }

        input[type="number"] {
            width: 100%;
            padding: 10px;
            margin: 10px 0;
            border: 1px solid #ccc;
            border-radius: 3px;
            box-sizing: border-box;
        }

        button {
            padding: 10px 20px;
            background-color: #007BFF;
            color: #fff;
            border: none;
            border-radius: 3px;
            cursor: pointer;
            width: 100%;
            box-sizing: border-box;
        }

        button:hover {
            background-color: #0056b3;
        }

        .logout-link {
            margin-top: 20px;
            align: center;
        }

        .logout-link a {
            color: #007BFF;
            text-decoration: none;
        }

        .logout-link a:hover {
            text-decoration: underline;
        }


    </style>
</head>

<body>
<div class="assessment-container">
    <div class="header-image">
        <img src="{{ url_for('static', filename='/images/libImgHeader.png') }}" alt="Header Image"
             style="max-width: 100%; height: auto;margin-bottom: -25px">
    </div>
    <h2 align="center">请您填写热身问卷</h2>
    <form method="post">
        {% for question in questions %}
        <div class="question">
            <p>{{ loop.index }}. {{ question }}</p>
            <label><input type="radio" name="q{{ loop.index }}" value="不符合" required> 不符合</label>
            <label><input type="radio" name="q{{ loop.index }}" value="有时符合"> 有时符合</label>
            <label><input type="radio" name="q{{ loop.index }}" value="常常符合"> 常常符合</label>
            <label><input type="radio" name="q{{ loop.index }}" value="完全符合"> 完全符合</label>
        </div>
        {% endfor %}
        <p>血压高压（成人正常90~139mmHg）<input type="number" name="blood_pressure_high" required></p>
        <p>血压低压（成人正常60~89mmHg）<input type="number" name="blood_pressure_low" required></p>
        <p>心率（成人正常60～100次/分）<input type="number" name="heart_rate" required></p>
        <button type="submit">提交</button>
    </form>
    <div class="logout-link">
        <a href="{{ url_for('logout') }}">注销</a>
    </div>
</div>
</body>

</html>